﻿using log4net;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Log4netWinFormSample
{
    public partial class MainForm : Form
    {
        private static readonly ILog log = LogManager.GetLogger(typeof(Log4netWinFormSample.MainForm));

        public MainForm()
        {
            InitializeComponent();
        }

        private void AddLogButton_Click(object sender, EventArgs e)
        {
            log.Debug(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        }
    }
}
